<template>
  <div class="dashboard-container">
    <div class="top">
      <!-- 左侧 -->
      <div class="left">
        <!-- 格言 -->
        <div class="banner">
          <img src="@/assets/userbg.png" alt="">
          <img src="@/assets/userbg2.png" alt="" style="float: right">
          <img src="@/assets/user.gif" alt="" class="user">
          <div class="ck">仓库管理员</div>
          <div class="say">我不是为了输赢，我就是认真！</div>
          <div class="name">———罗永浩</div>
          <div class="address">北京总仓</div>
        </div>
        <!-- 代办信息 -->
        <div class="backlog">
          <p class="samefz">待办信息 </p>
          <div class="btm">
            <!-- 第一个框 -->
            <div class="same" @click="$router.push('/manage-storage-in/list-in')">
              <div class="frist">
                <div class="icon">
                  <i class="iconfont icon-rkd" />
                </div>
                <div class="rkd">入库单</div>
              </div>
              <div class="sed">
                <span>新增</span>
                <span class="hei">2</span>
                <span>待审核</span>
                <span class="hei col">2</span>
              </div>
            </div>
            <!-- 第二个框 -->
            <div class="same" @click="$router.push('/manage-storage-out/list-out')">
              <div class="frist">
                <div class="icon icon2">
                  <i class="iconfont icon-ckd" />
                </div>
                <div class="rkd">出库单</div>
              </div>
              <div class="sed">
                <span>新增</span>
                <span class="hei">6</span>
                <span>待审核</span>
                <span class="hei col2">6</span>
              </div>
            </div>
            <!-- 最后一个框 -->
            <div class="last same" @click="$router.push('/manage-storage/list')">
              <div class="frist">
                <div class="icon icon3">
                  <i class="iconfont icon-pdd" />
                </div>
                <div class="rkd">盘点单</div>
              </div>
              <div class="sed">
                <span>新增</span>
                <span class="hei">8</span>
                <span>待审核</span>
                <span class="hei col3">8</span>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- 右侧 -->
      <div class="right">
        <div class="info">
          <p>通知 / 公告</p>
          <div class="item">
            <div class="tit">
              紧急盘点通知
            </div>
            <div class="time">
              2020.12.30 18:23:14
            </div>
          </div>

          <div class="item">
            <div class="tit">
              运维服务更新通知
            </div>
            <div class="time">
              2020.02.25 18:23:14
            </div>
          </div>
          <div class="item">
            <div class="tit">
              客户入库变更通知
            </div>
            <div class="time">
              2020.01.26 18:23:14
            </div>
          </div>
          <div class="item">
            <div class="tit">
              五一放假通知
            </div>
            <div class="time">
              2021.02.15 18:23:14
            </div>
          </div>
          <div class="item">
            <div class="tit">
              品达物流系统对接通知
            </div>
            <div class="time">
              2020.02.25 18:23:14
            </div>
          </div>
        </div>

      </div>
    </div>
    <!-- 任务导航 -->
    <div class="tasks">
      <p class="samefz">任务导航 </p>
      <div class="items">
        <div class="tasks-item" @click="$router.push('/manage-storage-in/task-receive')">
          <div class="icon">
            <i class="iconfont icon-shouhuo" />
          </div>
          <span>收货任务</span>
        </div>
        <div class="tasks-item" @click="$router.push('/manage-storage-in/task-add')">
          <div class="icon2 icon">
            <i class="iconfont icon-shangjia" />
          </div>
          <span>上架任务</span>
        </div>
        <div class="tasks-item" @click="$router.push('/manage-storage/list-task')">
          <div class="icon3 icon">
            <i class="iconfont icon-pandian" />
          </div>
          <span>盘点任务</span>
        </div>
        <div class="tasks-item" @click="$router.push('/manage-storage-out/task-picking')">
          <div class="icon4 icon">
            <i class="iconfont icon-jianhuo" />
          </div>
          <span>拣货任务</span>
        </div>
        <div class="tasks-item last" @click="$router.push('/manage-storage-out/manage-task-transfer')">
          <div class="icon icon5">
            <i class="iconfont icon-jiaojie" />
          </div>
          <span>交接任务</span>
        </div>
      </div>
    </div>
    <!-- 入出库信息 -->
    <div class="inout">
      <p class="samefz">入库 / 出库信息 </p>
      <zhuxing />
    </div>
    <!-- 库存使用情况 -->
    <div class="use">
      <div class="chart1">
        <p class="samefz">库存使用情况 </p>
        <yuanhuan />

      </div>
      <div class="chart2">
        <p class="samefz">库存使用情况 </p>
        <bingtu />
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import bingtu from './components/bingtu.vue'
import Yuanhuan from './components/yuanhuan.vue'
import Zhuxing from './components/zhuxing.vue'

export default {
  name: 'Dashboard',
  components: { bingtu, Yuanhuan, Zhuxing },
  computed: {
    ...mapGetters(['name'])
  }
}
</script>

<style lang="scss" scoped>
.use{
  min-width: 1000px;
  margin-top: 20px;
  display: flex;
    flex-direction: row;
    justify-content: space-between;
    .chart1{
      width: 30%;
    height: 354px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 25px;
    margin-right: 30px;
    }
    .chart2{
      width: 70%;
    height: 354px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 25px;
    }
}
.inout{
  min-width: 1000px;
  margin-top: 20px;
  height: 500px;
  background: #fff;
  box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
  border-radius: 12px;
  padding: 25px;

// p{
//   padding: 25px;
// }
}
.tasks{
min-width: 1000px;
  width: 100%;
    height: 188px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    .items{
      display: flex;
      .last{
        margin-right: 0;
      }
    }
    .tasks-item{
      margin-right: 30px;
      position: relative;
    width: 100%;
    height: 93px;
    background: #fbf7f7;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    .icon{
      background: rgb(0, 118, 255);
      width: 50px;
      height: 50px;
      border-radius: 30px;
      text-align: center;
      line-height: 50px;color: #f4efee;
      i{
        font-size: 25px;
      }
      span{
        // margin-left: -10px;
        font-size: 16px;
      }
    }
    .icon2{
      background: rgb(82, 212, 243);
    }
    .icon3{
      background: rgb(255, 113, 0);
    }
    .icon4{
      background: rgb(255, 96, 158);
    }
    .icon5{
      background: rgb(255, 178, 0);
    }
 }
}
.samefz{
  font-weight: 800;
  font-size: 16px;
  margin-top: 0;
}
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.top {
  display: flex;
  .left {
    flex: 1;
    margin-right: 30px;
    min-width: 723px;
    .banner {
      position: relative;
      width: 100%;
      height: 148px;
      background: linear-gradient(270deg, #ffc771, #ffa634);
      box-shadow: 0 0 6px 0 rgb(188 151 69 / 12%);
      border-radius: 12px;
      img {
        height: 148px;
      }
      .user {
        width: 62px;
        height: 62px;
        border-radius: 33px;
        position: absolute;
        left: 44px;
        top: 34px;
      }
      .ck {
        position: absolute;
        left: 37px;
        top: 114px;
        font-size: 15px;
      }
      .say {
        color: #fff;
        position: absolute;
        top: 40px;
        left: 200px;
        font-size: 18px;
      }
      .name {
        position: absolute;
        top: 76px;
        left: 400px;
        color: #fff;
        font-size: 16px;
      }
      .address {
        position: absolute;
        right: 20px;
        top: 20px;
        width: 147px;
        height: 40px;
        font-size: 14px;
        font-weight: 500;
        color: #332929;
        background: #f8f5f5;
        border-radius: 6px;
        opacity: 0.79;
        text-align: center;
        line-height: 40px;
      }
    }
    .frist{
      display: flex;
      height: 55px;
      // background-color: pink;
      .rkd{
    height: 50px;
    margin-left: 10px;
    line-height: 50px;
      }
    }
    .sed{
      margin-top: 50px;
      span{
        font-size: 14px;
        font-family: PingFangSC-Regular,PingFang SC;
        font-weight: 400;
        color: #887e7e;
        margin-right: 10px;
        vertical-align: super;
       }
       .hei{
        font-size: 36px;
        color: #332929;
       }
       .col{
        color: #0076ff;
       }
       .col2{
        color: rgb(255, 178, 0);
       }
       .col3{
        color: rgb(255, 113, 0);
       }

    }
    .backlog {
      margin-top: 20px;
      width: 100%;
      height: 282px;
      background: #fff;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 25px;
      p{
        font-size: 16px;
        font-family: PingFangSC-Semibold,PingFang SC;
        font-weight: 600;
        color: #332929;
        line-height: 22px;
      }
      .btm{
        display: flex;

        .icon{
          width: 49px;
          height: 49px;
          background: #0076ff;
          border-radius: 12px;
          display: flex;
          align-items: center;
          justify-content: space-around;
          i{
            color: #fff;
            font-size: 20px;
            font-weight: 500;
          }
        }
        .icon2{
          background: rgb(255, 178, 0);
        }
        .icon3{
          background: rgb(255, 113, 0);
        }
        // justify-content:space-around;
        .same{
          // position: relative;
          width: 33%;
          height: 186px;
          background: #fbf7f7;
          border-radius: 8px;
          padding: 20px;
          cursor: pointer;
          margin-right: 20px;
          span{
           margin-top: 60px;
          }
        }
        .last{
          margin-right: 0;
        }
      }
    }
  }
  .right {
    .info {
      width: 261px;
      height: 451px;
      background: #fff;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 30px;
      p{
        margin-top: -2px;
        font-weight: 800;
        font-size: 16px;
      }
      .item{
        margin-top: 15px;
        padding-top: 15px;
        width: 201px;
        height: 61px;
        border-top: 1px solid #f4efee;
        .tit{
          font-size: 15px;
        }
        .time{
          width: 115px;
    height: 17px;
    font-size: 12px;
    font-family: PingFangSC-Regular,PingFang SC;
    font-weight: 400;
    color: #887e7e;
    line-height: 17px;
    margin-top: 10px;
        }
      }
    }
  }
}
</style>
